package coreservlets.filters;

import java.io.IOException;
import java.io.StringWriter;

import javax.servlet.ServletOutputStream;

public class StringOutputStream extends ServletOutputStream {

	private StringWriter stringWriter;

	public StringOutputStream(StringWriter stringWriter) {
		 this.stringWriter = stringWriter;
	}
	
	@Override
	public void write(int b) throws IOException {
		stringWriter.write(b);
	}

}
